﻿/************************************************
 * Copyright (C) 2011 东北农业大学(NEAU)
 * 版权所有。
 * 文件名：ExamineStuffList.aspx.cs
 * 版本号：v1.0
 * 文件功能描述：材料出库审核的信息显示
 * 作者：侯建
 * 创建日期：2011.04.19
************************************************/
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Jxym.DBUtility;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;

namespace Jxym.wlkc2011.Module.Default.server.ToStockRoomStuff
{
    public partial class ExamineStuffList1 : System.Web.UI.Page
    {
        MsSqlDal<model.ToStockRoomStuff> iCom = new MsSqlDal<model.ToStockRoomStuff>();
        //MsSqlDal<model.ToStockRoomStuff> iCom = new MsSqlDal<model.ToStockRoomStuff>();
        private int itemid;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.Params["itemid"] != null)
                {
                    itemid = Convert.ToInt32(Request.Params["itemid"]);
                    model.ToStockRoomStuff list = iCom.GetModel("ID = " + itemid, null);
                    list.ToStockRoomPepole = MyGet.GetUserInfoByID(list.ToStockRoomPepole).Name;
                    Response.Write(JsonConvert.SerializeObject(list, new JavaScriptDateTimeConverter()));
                }
            }
        }
    }
}